package com.subalien.client.battle;

import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.layout.VLayout;
import com.subalien.client.MainTool;

public class BattleTool {

	public BattleTool() {
	}
	
	public void init() {
	}
	
	public void build() {
		VLayout workingLayout = MainTool.getGameTool().getWorkingVLayout();
		workingLayout.removeMembers(workingLayout.getMembers());
		
		Label testLabel = new Label("battle test");
		workingLayout.addMember(testLabel);
	}
	
	public void setBattleButtonDisabled(boolean disabled) {
		Button battleButton = (Button) MainTool.getGameTool().getButtonsLayout().getMember("battleButton");
		battleButton.setDisabled(disabled);
	}
}
